//
//  HRZGoodsTypeChooseCell.m
//  EMarket
//
//  Created by Tyrone on 2018/5/24.
//
//  Copyright © 2018 好日子. All rights reserved.
//

#import "HRZGoodsTypeChooseCell.h"

// Controllers

// Models
#import "HRZGoodsTypeModel.h"
// Views

// Vendors

// Categories

// Others

@interface HRZGoodsTypeChooseCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleNameLabel;
@end

@implementation HRZGoodsTypeChooseCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _titleNameLabel.textColor = HRZThemeColor;
    [self setBackgroundColor:[UIColor whiteColor]];
    
}

- (void)setGoodsType:(HRZGoodsTypeModel *)goodsType {
    _goodsType = goodsType;
    _titleNameLabel.text = goodsType.goodsTypeName;
}

- (void)setSelected:(BOOL)selected {
    [super setSelected:selected];
    
    if (selected) {
        [_titleNameLabel setTextColor:[UIColor whiteColor]];
        [self setBackgroundColor:HRZThemeColor];
    } else {
        [_titleNameLabel setTextColor:HRZThemeColor];
        [self setBackgroundColor:[UIColor whiteColor]];
    }
}

@end
